#ifndef FRIENDRESPONSE_H
#define FRIENDRESPONSE_H

#include "network/networkjsonlistresponse.h"

#include <QMap>


class GetFriendIdResponse : public Network::JSONResponse
{
    Q_OBJECT

public:
    typedef QList<int32_t> ListUserId;

public:
    explicit GetFriendIdResponse(QObject *parent = 0);
    ~GetFriendIdResponse();

private:

    ListUserId m_idList;
    int32_t _totalFriend;

private:
    void parse(const QVariant &data);
    void parseIdList(const QVariantList &list);

public:

    inline int32_t getTotal()const {
        return _totalFriend;
    }

    inline const ListUserId &getListUserId() const {
        return m_idList;
    }
};

#endif // FRIENDRESPONSE_H
